package com.merchant.document.controller;

import com.merchant.document.entity.Result;
import com.merchant.document.entity.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Api("这是一个测试方法类")
public class UserController {



    @RequestMapping(value = "/hello/{id}",method = RequestMethod.GET)
    @ResponseBody
    @ApiOperation(value = "查询学生的信息",notes = "查询数据库的某个学生的信息")
    @ApiImplicitParam(name = "id",value = "学生ID",paramType = "path",dataType = "java.util.string")
    public Result query(@PathVariable String id){
        return  new Result(true,"操作成功",new User());
    }


}
